package by.grsu.bso.persistence.base;

import java.sql.SQLException;
import java.util.List;

import by.grsu.bso.model.ShoppingCartItem;

public interface IShoppingCartItemDAO extends DAO<ShoppingCartItem> {
	public void saveItem(ShoppingCartItem item) throws SQLException;
	public boolean isSame(final int userId, final int productId) throws SQLException;
	public List<ShoppingCartItem> findAllByUserId(int id) throws SQLException;
	public void update(Integer userOld, Integer userNew) throws SQLException;
	public void updateQuantity(Integer itemId, Integer newQuantity) throws SQLException;

}
